home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / tex-k / tex-k-archive.past / tex-k-archive.gz / tex-k-archive / 000272_simon@lia.di.epfl.ch_Mon Feb 7 16:18:51 1994.msg < prev    next >
Internet Message Format  |  1994-10-11  |  13KB

  1. Received: from liasun6.epfl.ch by cs.umb.edu with SMTP id AA14611
  2.   (5.65c/IDA-1.4.4 for <tex-k@cs.umb.edu>); Mon, 7 Feb 1994 16:18:51 -0500
  3. Received: by liasun6.epfl.ch (Smail3.1.28.1 #58)
  4.     id m0pTdM1-0002PgC; Mon, 7 Feb 94 22:18 MET
  5. Message-Id: <m0pTdM1-0002PgC@liasun6.epfl.ch>
  6. Date: Mon, 7 Feb 94 22:18 MET
  7. From: simon@lia.di.epfl.ch (Simon Leinen)
  8. To: tex-k@cs.umb.edu
  9. Subject: web2c 6.1 - --srcdir still broken - patch2
  10.  
  11. Here are the promised patches to web2c-6.1's Makefile.in files.
  12. With these patches and the small patch I posted in my last message, I
  13. can configure web2c in an empty directory, with the sources mounted
  14. from a read-only file system.  The --srcdir argument to the top-level
  15. configure script still doesn't work, but you don't need it if you
  16. leave the script in the source directory and call it by its full path
  17. name (.../web2c-6.1/configure [arguments]).  I tested compilation on
  18. several different systems, and also checked that the usual procedure
  19. (with the source files and object files in the same tree) still works.
  20.  
  21. Hope this helps,
  22. -- 
  23. Simon.
  24.  
  25. *** web2c/bibtex/Makefile.in    1994/02/07 18:56:35    1.1
  26. --- web2c/bibtex/Makefile.in    1994/02/07 19:18:37
  27. ***************
  28. *** 17,21 ****
  29.   
  30.   # Routines used in TeX, Metafont, and BibTeX.
  31. ! fileioc = ../lib/openinout.c
  32.   fileioo = openinout.o
  33.   
  34. --- 17,21 ----
  35.   
  36.   # Routines used in TeX, Metafont, and BibTeX.
  37. ! fileioc = $(srcdir)/../lib/openinout.c
  38.   fileioo = openinout.o
  39.   
  40. ***************
  41. *** 24,28 ****
  42.   CC = @CC@
  43.   CFLAGS = -g
  44. ! CPPFLAGS = -DBibTeX -I$(srcdir)/../lib -I../..
  45.   
  46.   CCLD = $(CC)
  47. --- 24,28 ----
  48.   CC = @CC@
  49.   CFLAGS = -g
  50. ! CPPFLAGS = -DBibTeX -I../lib -I$(srcdir)/../lib -I../.. -I$(srcdir)/../..
  51.   
  52.   CCLD = $(CC)
  53. ***************
  54. *** 40,48 ****
  55.   .SUFFIXES: .o .c .p .ch
  56.   .p.c:
  57. !     $(SHELL) $(srcdir)/../bibtex/convert $*.p $*.c
  58.   .ch.p:
  59. !     ../web/tangle $*.web c$*.ch
  60.   .c.o:
  61. !     $(CC) $(CPPFLAGS) $(CFLAGS) -c $*.c
  62.   
  63.   
  64. --- 40,49 ----
  65.   .SUFFIXES: .o .c .p .ch
  66.   .p.c:
  67. !     $(SHELL) $(srcdir)/../bibtex/convert $< $@
  68.   .ch.p:
  69. !     test -r $*.web || $(LN) $(srcdir)/$*.web .
  70. !     ../web/tangle $*.web $<
  71.   .c.o:
  72. !     $(CC) $(CPPFLAGS) $(CFLAGS) -c $<
  73.   
  74.   
  75. *** web2c/dviutil/Makefile.in    1994/02/07 18:53:24    1.1
  76. --- web2c/dviutil/Makefile.in    1994/02/07 18:54:18
  77. ***************
  78. *** 20,24 ****
  79.   CC = @CC@
  80.   CFLAGS = -g
  81. ! CPPFLAGS = -I$(srcdir)/../lib -I../..
  82.   
  83.   CCLD = $(CC)
  84. --- 20,24 ----
  85.   CC = @CC@
  86.   CFLAGS = -g
  87. ! CPPFLAGS = -I../lib -I$(srcdir)/../lib -I../.. -I$(srcdir)/../..
  88.   
  89.   CCLD = $(CC)
  90. ***************
  91. *** 36,42 ****
  92.       $(SHELL) $(srcdir)/../lib/convert $*.p $*.c
  93.   .ch.p:
  94. !     ../web/tangle $*.web $*.ch
  95.   .c.o:
  96. !     $(CC) $(CPPFLAGS) $(CFLAGS) -c $*.c
  97.   
  98.   
  99. --- 36,43 ----
  100.       $(SHELL) $(srcdir)/../lib/convert $*.p $*.c
  101.   .ch.p:
  102. !     test -r $*.web || ln -s $(srcdir)/$*.web .
  103. !     ../web/tangle $*.web $<
  104.   .c.o:
  105. !     $(CC) $(CPPFLAGS) $(CFLAGS) -c $<
  106.   
  107.   
  108. *** web2c/fontutil/Makefile.in    1994/02/07 18:59:20    1.1
  109. --- web2c/fontutil/Makefile.in    1994/02/07 19:07:09
  110. ***************
  111. *** 20,24 ****
  112.   CC = @CC@
  113.   CFLAGS = -g
  114. ! CPPFLAGS = -I$(srcdir)/../lib -I../..
  115.   
  116.   CCLD = $(CC)
  117. --- 20,24 ----
  118.   CC = @CC@
  119.   CFLAGS = -g
  120. ! CPPFLAGS = -I. -I$(srcdir) -I../lib -I$(srcdir)/../lib -I../.. -I$(srcdir)/../..
  121.   
  122.   CCLD = $(CC)
  123. ***************
  124. *** 34,42 ****
  125.   .SUFFIXES: .o .c .p .ch
  126.   .p.c:
  127. !     $(SHELL) $(srcdir)/../lib/convert $*.p $*.c
  128.   .ch.p:
  129. !     ../web/tangle $*.web $*.ch
  130.   .c.o:
  131. !     $(CC) $(CPPFLAGS) $(CFLAGS) -c $*.c
  132.   
  133.   
  134. --- 34,43 ----
  135.   .SUFFIXES: .o .c .p .ch
  136.   .p.c:
  137. !     $(SHELL) $(srcdir)/../lib/convert $< $@
  138.   .ch.p:
  139. !     test -r $*.web || ln -s $(srcdir)/$*.web .
  140. !     ../web/tangle $*.web $<
  141.   .c.o:
  142. !     $(CC) $(CPPFLAGS) $(CFLAGS) -c $<
  143.   
  144.   
  145. *** web2c/mf/MFwindow/Makefile.in    1994/02/07 19:53:14    1.1
  146. --- web2c/mf/MFwindow/Makefile.in    1994/02/07 19:53:48
  147. ***************
  148. *** 15,19 ****
  149.   CFLAGS = -g
  150.   # We need `-I.' for mfd.h (when compiling the files from ../lib).
  151. ! CPPFLAGS = -I$(srcdir)/../../lib -I../../.. -I. $(x_include_flags)
  152.   
  153.   LN = @LN_S@
  154. --- 15,20 ----
  155.   CFLAGS = -g
  156.   # We need `-I.' for mfd.h (when compiling the files from ../lib).
  157. ! CPPFLAGS = -I../../lib -I$(srcdir)/../../lib -I../../.. \
  158. !     -I$(srcdir)/../../.. -I. $(x_include_flags)
  159.   
  160.   LN = @LN_S@
  161. ***************
  162. *** 30,34 ****
  163.   .SUFFIXES: .o .c
  164.   .c.o:
  165. !     $(CC) $(CPPFLAGS) $(CFLAGS) -c $*.c
  166.   
  167.   
  168. --- 31,35 ----
  169.   .SUFFIXES: .o .c
  170.   .c.o:
  171. !     $(CC) $(CPPFLAGS) $(CFLAGS) -c $<
  172.   
  173.   
  174. *** web2c/mf/Makefile.in    1994/02/07 19:00:50    1.1
  175. --- web2c/mf/Makefile.in    1994/02/07 20:09:45
  176. ***************
  177. *** 37,41 ****
  178.   CC = @CC@
  179.   CFLAGS = -g
  180. ! CPPFLAGS = -DMF -I$(srcdir)/../lib -I../..
  181.   
  182.   CCLD = $(CC)
  183. --- 37,41 ----
  184.   CC = @CC@
  185.   CFLAGS = -g
  186. ! CPPFLAGS = -DMF -I../lib -I$(srcdir)/../lib -I../.. -I$(srcdir)/../..
  187.   
  188.   CCLD = $(CC)
  189. ***************
  190. *** 72,77 ****
  191.   # What to pass to submakes.
  192.   makeargs=SHELL='$(SHELL)' CC='$(CC)' CFLAGS='$(CFLAGS)' \
  193. ! LDFLAGS='$(LDFLAGS)' LIBS='$(libs)' RANLIB='$(RANLIB)' LN='$(LN)' \
  194. ! srcdir=$(srcdir)  
  195.   
  196.   
  197. --- 72,76 ----
  198.   # What to pass to submakes.
  199.   makeargs=SHELL='$(SHELL)' CC='$(CC)' CFLAGS='$(CFLAGS)' \
  200. ! LDFLAGS='$(LDFLAGS)' LIBS='$(libs)' RANLIB='$(RANLIB)' LN='$(LN)'
  201.   
  202.   
  203. ***************
  204. *** 79,83 ****
  205.   .SUFFIXES: .o .c
  206.   .c.o:
  207. !     $(CC) $(CPPFLAGS) $(CFLAGS) -c $*.c
  208.   
  209.   
  210. --- 78,82 ----
  211.   .SUFFIXES: .o .c
  212.   .c.o:
  213. !     $(CC) $(CPPFLAGS) $(CFLAGS) -c $<
  214.   
  215.   
  216. ***************
  217. *** 147,150 ****
  218. --- 146,150 ----
  219.   
  220.   mf.p mf.pool: mf.web cmf.ch
  221. +     test -r mf.web || $(LN) $(srcdir)/mf.web .
  222.       ../web/tangle mf.web cmf.ch
  223.   
  224. ***************
  225. *** 156,159 ****
  226. --- 156,160 ----
  227.   mf0.c mf1.c mf2.c mf3.c mf4.c mf5.c mf6.c mf7.c mf8.c mf9.c \
  228.   imf.c coerce.h mfd.h: mf.p coerce.add $(commondefines)
  229. +     test -r coerce.add || $(LN) $(srcdir)/coerce.add .
  230.       $(SHELL) $(mfsrcdir)/convert
  231.       touch mfd.h
  232. *** web2c/tex/Makefile.in    1994/02/07 19:00:03    1.1
  233. --- web2c/tex/Makefile.in    1994/02/07 19:24:01
  234. ***************
  235. *** 38,42 ****
  236.   CC = @CC@
  237.   CFLAGS = -g
  238. ! CPPFLAGS = -DTeX -I$(srcdir)/../lib -I../..
  239.   
  240.   CCLD = $(CC)
  241. --- 38,42 ----
  242.   CC = @CC@
  243.   CFLAGS = -g
  244. ! CPPFLAGS = -DTeX -I../lib -I$(srcdir)/../lib -I../.. -I$(srcdir)/../..
  245.   
  246.   CCLD = $(CC)
  247. ***************
  248. *** 74,82 ****
  249.   .SUFFIXES: .o .c .p .ch
  250.   .p.c:
  251. !     $(SHELL) $(srcdir)/../lib/convert $*.p $*.c
  252.   .ch.p:
  253. !     ../web/tangle $*.web $*.ch
  254.   .c.o:
  255. !     $(CC) $(CPPFLAGS) $(CFLAGS) -c $*.c
  256.   
  257.   
  258. --- 74,83 ----
  259.   .SUFFIXES: .o .c .p .ch
  260.   .p.c:
  261. !     $(SHELL) $(srcdir)/../lib/convert $< $@
  262.   .ch.p:
  263. !     test -r $*.web || $(LN) $(srcdir)/$*.web .
  264. !     ../web/tangle $*.web $<
  265.   .c.o:
  266. !     $(CC) $(CPPFLAGS) $(CFLAGS) -c $<
  267.   
  268.   
  269. ***************
  270. *** 185,188 ****
  271. --- 186,190 ----
  272.   
  273.   tex.p: tex.web ctex.ch
  274. +     test -r tex.web || $(LN) $(srcdir)/tex.web .
  275.       ../web/tangle tex.web ctex.ch
  276.   
  277. ***************
  278. *** 199,202 ****
  279. --- 201,206 ----
  280.   tex0.c tex1.c tex2.c tex3.c tex4.c tex5.c tex6.c tex7.c tex8.c tex9.c \
  281.   itex.c coerce.h texd.h: tex.p coerce.add $(commondefines)
  282. +     test -r coerce.add || $(LN) $(srcdir)/coerce.add .
  283. +     test -r ../lib/texmf.defines || $(LN) $(srcdir)/../lib/texmf.defines ../lib
  284.       $(SHELL) $(texsrcdir)/convert
  285.       touch texd.h
  286. *** web2c/web/Makefile.in    1994/02/07 18:42:20    1.1
  287. --- web2c/web/Makefile.in    1994/02/07 18:51:03
  288. ***************
  289. *** 21,25 ****
  290.   CC = @CC@
  291.   CFLAGS = -g
  292. ! CPPFLAGS = -I$(srcdir)/../lib -I../..
  293.   
  294.   CCLD = $(CC)
  295. --- 21,25 ----
  296.   CC = @CC@
  297.   CFLAGS = -g
  298. ! CPPFLAGS = -I../lib -I$(srcdir)/../lib -I../.. -I$(srcdir)/../..
  299.   
  300.   CCLD = $(CC)
  301. ***************
  302. *** 35,43 ****
  303.   .SUFFIXES: .o .c .p .ch
  304.   .p.c:
  305. !     $(SHELL) $(srcdir)/../lib/convert $*.p $*.c
  306.   .ch.p:
  307. !     ./tangle $*.web $*.ch
  308.   .c.o:
  309. !     $(CC) $(CPPFLAGS) $(CFLAGS) -c $*.c
  310.   
  311.   
  312. --- 35,45 ----
  313.   .SUFFIXES: .o .c .p .ch
  314.   .p.c:
  315. !     test -r ../lib/common.defines || ln -s $(srcdir)/../lib/common.defines ../lib
  316. !     $(SHELL) $(srcdir)/../lib/convert $< $@
  317.   .ch.p:
  318. !     test -r $*.web || ln -s $(srcdir)/$*.web .
  319. !     ./tangle $*.web $<
  320.   .c.o:
  321. !     $(CC) $(CPPFLAGS) $(CFLAGS) -c $<
  322.   
  323.   
  324. ***************
  325. *** 74,77 ****
  326. --- 76,81 ----
  327.   # tangle again using itself.)
  328.   tangle.p: tangleboot tangle.web tangle.ch
  329. +     test -r tangle.web || ln -s $(srcdir)/tangle.web .
  330. +     test -r tangle.ch || ln -s $(srcdir)/tangle.ch .
  331.       ./tangleboot tangle.web tangle.ch
  332.   
  333. *** web2c/lib/Makefile.in    1994/02/07 17:57:16    1.1
  334. --- web2c/lib/Makefile.in    1994/02/07 17:58:32
  335. ***************
  336. *** 9,13 ****
  337.   CC = @CC@
  338.   CFLAGS = -g
  339. ! CPPFLAGS = @DEFS@ -I../lib -I../..
  340.   
  341.   AR = ar
  342. --- 9,13 ----
  343.   CC = @CC@
  344.   CFLAGS = -g
  345. ! CPPFLAGS = @DEFS@ -I../lib -I../.. -I$(srcdir)/../lib -I$(srcdir)/../..
  346.   
  347.   AR = ar
  348. ***************
  349. *** 41,45 ****
  350.   # result in a conflicting decl of xmalloc. How annoying.
  351.   alloca.o: alloca.c 
  352. !     $(CC) $(CFLAGS) -c alloca.c
  353.   
  354.   Makefile: Makefile.in ../config.status
  355. --- 41,45 ----
  356.   # result in a conflicting decl of xmalloc. How annoying.
  357.   alloca.o: alloca.c 
  358. !     $(CC) $(CFLAGS) -c $(srcdir)/alloca.c
  359.   
  360.   Makefile: Makefile.in ../config.status
  361. *** web2c/web2c/Makefile.in    1994/02/07 18:00:13    1.1
  362. --- web2c/web2c/Makefile.in    1994/02/07 18:31:05
  363. ***************
  364. *** 16,20 ****
  365.   CC = @CC@
  366.   CFLAGS = -g
  367. ! CPPFLAGS = -I$(srcdir)/../lib -I../..
  368.   
  369.   LEX = @LEX@
  370. --- 16,20 ----
  371.   CC = @CC@
  372.   CFLAGS = -g
  373. ! CPPFLAGS = -I../lib -I$(srcdir)/../lib -I../.. -I$(srcdir)/../.. -I. -I$(srcdir)
  374.   
  375.   LEX = @LEX@
  376. ***************
  377. *** 33,37 ****
  378.   .SUFFIXES: .o .c
  379.   .c.o:
  380. !     $(CC) $(CPPFLAGS) $(CFLAGS) -c $*.c
  381.   
  382.   
  383. --- 33,37 ----
  384.   .SUFFIXES: .o .c
  385.   .c.o:
  386. !     $(CC) $(CPPFLAGS) $(CFLAGS) -c $<
  387.   
  388.   
  389. ***************
  390. *** 46,55 ****
  391.   $(LEX_OUTPUT_ROOT).o: $(LEX_OUTPUT_ROOT).c y.tab.h
  392.   $(LEX_OUTPUT_ROOT).c: web2c.lex
  393. !     $(LEX) web2c.lex
  394.   
  395.   y.tab.o: y.tab.c
  396.   y.tab.c y.tab.h: web2c.yacc
  397.       @echo Expect one shift/reduce conflict.
  398. !     $(YACC) -d -v web2c.yacc
  399.   
  400.   fixwrites: fixwrites.o
  401. --- 46,55 ----
  402.   $(LEX_OUTPUT_ROOT).o: $(LEX_OUTPUT_ROOT).c y.tab.h
  403.   $(LEX_OUTPUT_ROOT).c: web2c.lex
  404. !     $(LEX) $(srcdir)/web2c.lex
  405.   
  406.   y.tab.o: y.tab.c
  407.   y.tab.c y.tab.h: web2c.yacc
  408.       @echo Expect one shift/reduce conflict.
  409. !     $(YACC) -d -v $(srcdir)/web2c.yacc
  410.   
  411.   fixwrites: fixwrites.o
  412. *** Makefile.in    1994/02/07 16:15:31    1.1
  413. --- Makefile.in    1994/02/07 16:15:50
  414. ***************
  415. *** 17,21 ****
  416.   
  417.   # Generic installation directories.
  418. ! prefix = /usr/local
  419.   exec_prefix = $(prefix)
  420.   bindir = $(exec_prefix)/bin
  421. --- 17,21 ----
  422.   
  423.   # Generic installation directories.
  424. ! prefix = /logiciels/public/TeX
  425.   exec_prefix = $(prefix)
  426.   bindir = $(exec_prefix)/bin
  427. ***************
  428. *** 35,39 ****
  429.   
  430.   # The root of the tree.
  431. ! texmf_prefix = $(datadir)/texmf
  432.   
  433.   # TeX and MF source files.
  434. --- 35,39 ----
  435.   
  436.   # The root of the tree.
  437. ! texmf_prefix = $(datadir)
  438.   
  439.   # TeX and MF source files.
  440. *** kpathsea/Makefile.in    1994/02/07 16:30:28    1.1
  441. --- kpathsea/Makefile.in    1994/02/07 17:48:05
  442. ***************
  443. *** 82,86 ****
  444.   
  445.   # Do not override CPPFLAGS; change CFLAGS or DEFS instead.
  446. ! CPPFLAGS = $(XCPPFLAGS) -I. -I$(srcdir) -I$(kpathsea_parent) \
  447.              $(x_include_flags) $(DEFS) 
  448.   .c.o:
  449. --- 82,86 ----
  450.   
  451.   # Do not override CPPFLAGS; change CFLAGS or DEFS instead.
  452. ! CPPFLAGS = $(XCPPFLAGS) -I. -I$(srcdir) -I$(kpathsea_parent) -I$(kpathsea_srcdir_parent) \
  453.              $(x_include_flags) $(DEFS) 
  454.   .c.o:
  455. ***************
  456. *** 238,246 ****
  457.   
  458.   
  459.   dvi: kpathsea.dvi
  460. ! kpathsea.dvi: *.texi
  461.   
  462.   info: kpathsea.info
  463. ! kpathsea.info: *.texi
  464.   
  465.   INSTALL: install.texi
  466. --- 238,250 ----
  467.   
  468.   
  469. + texifiles = kpathsea.texi \
  470. +     intro.texi install.texi userspec.texi \
  471. +     tex-doc.texi copying.texi freedom.texi index.texi
  472.   dvi: kpathsea.dvi
  473. ! kpathsea.dvi: $(texifiles)
  474.   
  475.   info: kpathsea.info
  476. ! kpathsea.info: $(texifiles)
  477.   
  478.   INSTALL: install.texi
  479. *** xdvik/Makefile.in    1994/02/07 18:26:56    1.1
  480. --- xdvik/Makefile.in    1994/02/07 18:27:32
  481. ***************
  482. *** 79,83 ****
  483.   # Do not override CPPFLAGS; change CFLAGS or DEFS instead.
  484.   CPPFLAGS = $(XCPPFLAGS) -I. -I$(srcdir) -I$(kpathsea_parent) \
  485. !            $(x_include_flags) $(DEFS) 
  486.   .c.o:
  487.       $(CC) $(CPPFLAGS) $(CFLAGS) -c $<
  488. --- 79,83 ----
  489.   # Do not override CPPFLAGS; change CFLAGS or DEFS instead.
  490.   CPPFLAGS = $(XCPPFLAGS) -I. -I$(srcdir) -I$(kpathsea_parent) \
  491. !           -I$(kpathsea_srcdir_parent) $(x_include_flags) $(DEFS) 
  492.   .c.o:
  493.       $(CC) $(CPPFLAGS) $(CFLAGS) -c $<
  494. *** dvipsk/Makefile.in    1994/02/07 17:48:57    1.1
  495. --- dvipsk/Makefile.in    1994/02/07 17:49:12
  496. ***************
  497. *** 98,102 ****
  498.   # Do not override CPPFLAGS; change CFLAGS or DEFS instead.
  499.   CPPFLAGS = $(XCPPFLAGS) -I. -I$(srcdir) -I$(kpathsea_parent) \
  500. !            $(x_include_flags) $(DEFS) 
  501.   .c.o:
  502.       $(CC) $(CPPFLAGS) $(CFLAGS) -c $<
  503. --- 98,102 ----
  504.   # Do not override CPPFLAGS; change CFLAGS or DEFS instead.
  505.   CPPFLAGS = $(XCPPFLAGS) -I. -I$(srcdir) -I$(kpathsea_parent) \
  506. !            -I$(kpathsea_srcdir_parent) $(x_include_flags) $(DEFS) 
  507.   .c.o:
  508.       $(CC) $(CPPFLAGS) $(CFLAGS) -c $<